package cc.zy.base.businesses.mapper;

import cc.zy.base.businesses.entity.*;
import cc.zy.base.monitor.entity.SystemLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * 学生表
 * Mapper
 *
 * @author Jiangjinlin
 * @date 2021-01-25 11:45:25
 */
public interface StudentMapper extends BaseMapper<Student> {

    /**
     * @param student 传递学生student对象
     * @return Ipage
     * @Description: 为了显示学生分页信息
     * @author zhizhao Zhang
     * @date 2021-02-03 11:52:14
     */
    long countStudentDetail(@Param("student") Student student);

    /**
     * @param student 传递学生student对象
     * @return Ipage
     * @Description: 查找学生--详细信息--为了在servieImpl实现中使用
     * @author zhizhao Zhang
     * @date 2021-02-03 11:52:14
     */
    <T> IPage<Student> selectStudentDetailPage(Page<T> page, @Param("student") Student student);

    /**
     * 查寻公海学生
     *
     * @Author hutengjiao
     * @Date: 2021/4/12 23:07
     * @param
     * @return
     */
    long countStudentPoolDetail(@Param("student") Student student);

    /**
     * 查寻公海学生
     *
     * @Author hutengjiao
     * @Date: 2021/4/12 23:07
     * @param
     * @return
     */
    <T> IPage<Student> selectStudentPoolDetailPage(Page<T> page, @Param("student") Student student);

}